package com.hex.ds.hdtp.core.app.data.transfer.dto.response;

import lombok.Data;

/**
 * @Package: com.hex.ds.hdtp.core.app.data.transfer.dto.request
 * @ClassName DataTransferLogResponseDto
 * @Description: 数据迁移记录-ResponseDto对象
 * @Author: wz.li
 * @Date 2023/8/18 13:44
 * @Version v2.0.2
 **/
@Data
public class DataTransferLogResponseDto {

    private String pkId;

    private String dataTransferTaskPkId;

    private String dataTransferListPkId;

    private String bizDate;

    private String sourceConnPkId;

    private String sourceConnName;

    private String sourceDatabaseName;

    private String sourceTableName;

    private String targetConnPkId;

    private String targetConnName;

    private String targetDatabaseName;

    private String targetTableName;

    private String dataFrom;

    private String status;

    private String startTime;

    private String endTime;

    private String errorMessage;

    private String analysisResult;

    private String analysisMessage;

    private String isDataAnalysis;

    private String tableTransferListPkId;

    private String exportDataFileResult;

    public String getSourceDbAndTableName() {
        return sourceDatabaseName + "." + sourceTableName;
    }

    public String getTargetDbAndTableName() {
        return targetDatabaseName + "." + targetTableName;
    }

}
